home *** CD-ROM | disk | FTP | other *** search
/ Business Shareware / Business Shareware.iso / start / wordproc / me_cd25 / max.mut < prev    next >
Encoding:
Text File  |  1992-11-09  |  262 b   |  13 lines

  1.   ;; max.mut : find the the maximum of a list of numbers
  2.   ;; eg (max 1 2 3 4 5) returns 5
  3.   ;; C Durland    Public Domain
  4.  
  5. (defun max HIDDEN
  6. {
  7.   (int n i)
  8.  
  9.   (i (- (nargs) 1))(n (arg i))
  10.   (while (>= (-= i 1) 0) (if (< n (arg i)) (n (arg i))) )
  11.   n
  12. })
  13.